home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / SGMLCompositeTextP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  2.2 KB  |  56 lines

  1. /*==================================================================*/
  2. /*                                                                  */
  3. /* SGMLCompositeTextObject                                          */
  4. /*                                                                  */
  5. /* T.Johnson - (TonyJ@Slacvx.Slac.Stanford.Edu)           June.92   */
  6. /*                                                                  */
  7. /* Defines a text segment for the SGMLHyper widget                  */
  8. /*                                                                  */
  9. /*==================================================================*/
  10.  
  11. #ifndef SGMLCOMPOSITETEXTP_H
  12. #define SGMLCOMPOSITETEXTP_H
  13.  
  14. #include "SGMLCompositeText.h"
  15. #include "SGMLTextP.h"
  16.  
  17. typedef struct _SGMLCompositeTextClassPart{
  18.  
  19.     XtGeometryHandler geometry_manager;      /* geometry manager for children   */
  20.     XtWidgetProc      change_managed;      /* change managed state of child   */
  21.     XtWidgetProc      insert_child;      /* physically add child to parent  */
  22.     XtWidgetProc      delete_child;      /* physically remove child         */
  23.     XtPointer          extension;      /* pointer to extension record     */
  24.  
  25. } SGMLCompositeTextClassPart;
  26.  
  27. typedef struct _SGMLCompositeTextClassRec{
  28.  
  29.     ObjectClassPart            object_class;
  30.     SGMLTextClassPart          sgml_text_class;
  31.     SGMLCompositeTextClassPart sgml_composite_text_class;
  32.  
  33. } SGMLCompositeTextClassRec, *SGMLCompositeTextObjectClass;
  34.  
  35. extern SGMLCompositeTextClassRec sGMLCompositeTextClassRec;
  36.  
  37. typedef struct _SGMLCompositeTextPart {
  38.  
  39.     WidgetList  children;         /* array of ALL widget children         */
  40.     Cardinal    num_children;         /* total number of widget children         */
  41.     Cardinal    num_slots;           /* number of slots in children array    */
  42.     XtOrderProc insert_position;     /* compute position of new child         */
  43.  
  44.     SGMLTagList *tag_list;           /* list of allowed tags */
  45.     WidgetClass default_class;       /* default class of children */ 
  46.  
  47. } SGMLCompositeTextPart;
  48.  
  49. typedef struct _SGMLCompositeTextRec {
  50.     ObjectPart             object;
  51.     SGMLTextPart           sgml_text;
  52.     SGMLCompositeTextPart  sgml_composite_text;
  53. } SGMLCompositeTextRec;
  54.  
  55. #endif SGMLCOMPOSITETEXTP_H
  56.